import 'package:flutter_test/flutter_test.dart';
import 'package:lib_core/utils/gt_number_format_v3.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

void main() {
  // final LibUtilsMethodChannel initialPlatform = LibUtilsMethodChannel.instance;

  // test('$LibUtilsMethodChannel is the default instance', () {
  //   expect(initialPlatform, isInstanceOf<MethodChannelLibUtils>());
  // });

  // test('getPlatformVersion', () async {
  //   LibUtils libUtilsPlugin = LibUtils();
  //
  //   expect(await libUtilsPlugin.getPlatformVersion(), '42');
  // });

  test('Test GTNumberFormat V3', (){
    final value = GTNumberFormatV3.formatNumToPercentage('');
    expect(value, '--');
    final value2 = GTNumberFormatV3.formatNumToPercentage('0.1');
    expect(value2, '10%');
    final value3 = GTNumberFormatV3.formatNumToPercentage('12.345');
    expect(value3, '1,234.5%');
  });
}
